package com.erp.app.admin.systemMenu.ejb;

import java.io.Serializable;

import com.erp.framework.model.pk.SimpleBasePk;

public class SystemMenuGroupPK implements SimpleBasePk, Serializable {
    public String companyCode;
    public String groupId;
    public String menuId;

    public SystemMenuGroupPK() {
    }

    public SystemMenuGroupPK(String companyCode, String groupId, String menuId) {
        this.companyCode = companyCode;
        this.groupId = groupId;
        this.menuId = menuId;
    }

    public String getCompanyCode() {
        return companyCode;
    }

    public String getGroupId() {
        return groupId;
    }

    public String getMenuId() {
        return menuId;
    }

    public int hashCode() {
        return (companyCode + groupId + menuId).hashCode();
    }

    public boolean equals(Object obj) {
        if (obj instanceof SystemMenuGroupPK) {
            SystemMenuGroupPK pk2 = (SystemMenuGroupPK) obj;
            return (companyCode.equals(pk2.companyCode) && groupId.equals(pk2.groupId) && menuId.equals(pk2.menuId));
        }
        return false;
    }

    public String toString() {
        return "{companyCode = " + this.companyCode + ", groupId = " + this.groupId + ", menuId = " + this.menuId + "}";
    }

}
